<template>
    <div class="sidebar">
      <el-container style="height: 100%; border: 1px solid #eee">
    <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
    <!-- 添加路由 -->
      <el-menu router :default-openeds="['1', '3']">
        <el-submenu index="/officeCenter">
          <template slot="title"><i class="el-icon-coin"></i>预算申请</template>
          <el-menu-item-group>
            <el-menu-item index="/officeCenter/applyfunt">经费预算申请详情</el-menu-item>
            <el-menu-item index="/officeCenter/applyFundDetail">经费预算申请表</el-menu-item>

          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="/officeCenter">
          <template slot="title"><i class="el-icon-notebook-1"></i>会议室申请</template>
          <el-menu-item-group>
            <el-menu-item index="/officeCenter/applyOffice">会议室申请详情</el-menu-item>
            <el-menu-item index="/officeCenter/applyOfficeDetail">会议室申请表</el-menu-item>

          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="/officeCenter">
          <template slot="title"><i class="el-icon-alarm-clock"></i>考勤管理</template>
          <el-menu-item-group>
            <el-menu-item index="/officeCenter/attendance">考勤管理详情</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-aside>
    <el-container>
    <!-- 路由视图渲染 -->
   <router-view />
    </el-container>
  </el-container>
    </div>
  </template>

<script>
export default {
  name: 'sidebar',
}
</script>

  <style  scoped>
   .el-header {
      background-color: #B3C0D1;
      color: #333;
      line-height: 60px;
    }

    .el-aside {
      color: #333;
    }
  </style>
